<template>
  <div class="home">
    <!-- 父传子 -->
   <!-- 父组件 -->
   <son :xyh="msg"></son>
  </div>
</template>

<script>
import son from "@/components/son.vue";
export default {
  name: "HomeView",
  data() {
    return {
      msg: "hello world"
    };
  },
  //  子组件注册
  components: {
    son
  }
};
</script>
